package verify

import (
	"awesomeProject/app/request"
	"errors"
)

func ShopStatisticsPagination(r *request.ShopStatisticsPagination) error {
	if r.PageIndex == 0 {
		r.PageIndex = 1
	}
	if r.PageSize == 0 {
		r.PageSize = 1000
	}
	//
	return nil
}

func ShopStatistics(r *request.ShopStatistics) error {
	if r.ShopId == 0 {
		return errors.New("店铺ID错误！")
	}
	//
	return nil
}

func ShopItemSaleStatistics(r *request.ShopItemSaleStatistics) error {
	if r.ShopId == 0 {
		return errors.New("店铺ID错误！")
	}
	return nil
}
